package site.jlopen.secret.model.node;

import java.util.Date;

import lombok.Data;

@Data
public class SecretNodeInfoResp {
	/**
	 * 节点主键
	 */
	private Long id;
    /**
	 * 平台类型→edge/center/autonomy
	 */
    private String platform;
    /**
	 * 部署模式→0:MPC/1:TEE/2:ALL-IN-ONE
	 */
    private Integer mode;
    /**
	 * 集群方式→0:中心化/1:P2P
	 */
    private Integer group;
    /**
	 * 标题
	 */
    private String title;
    /**
	 * 节点编号（唯一的编号，必须跟部署的节点ID一致）
	 */
    private String code;
    /**
	 * 中心化 x 中心化、中心化 x 点对点组网模式 Lite 节点必填；普通中心化模式，点对点模式不需要填写
	 */
    private String master;
    /**
	 * 节点网络通讯→http(s)://ip:-p格式(根据脚本install.sh -p参数)
	 */
    private String net;
    /**
	 * 节点grpc通讯→ip:-g格式(根据脚本install.sh -g参数)
	 */
    private String grpc;
    /**
	 * 协议类型→notls/tls/mtls
	 */
    private String protocol;
    /**
	 * 部署token
	 */
    private String deployToken;
    /**
	 * 可用状态(0可用)
	 */
    private Integer enable;
    /**
	 * 创建时间
	 */
    private Date create;
    
	public SecretNodeInfoResp(Long id, String platform, Integer mode, Integer group, String title, String code,
			String master, String net, String grpc, String protocol, String deployToken, Integer enable, Date create) {
		super();
		this.id = id;
		this.platform = platform;
		this.mode = mode;
		this.group = group;
		this.title = title;
		this.code = code;
		this.master = master;
		this.net = net;
		this.grpc = grpc;
		this.protocol = protocol;
		this.deployToken = deployToken;
		this.enable = enable;
		this.create = create;
	}
    
}
